if (LEFT(ADDRESS(), 6) ~= "GOLDED") then /* not started by GoldEd ? */
address 'GOLDED.1'
'LOCK CURRENT' /* lock GUI, gain access */
OPTIONS FAILAT 6 /* ignore warnings */
SIGNAL ON SYNTAX /* ensure clean exit */
/* ------------------------ INSERT YOUR CODE HERE: ------------------- */
'REQUEST BODY="A new API client has been installed.|Do you want to have this client added|to the list of active clients ?" BUTTON="_START NEW CLIENT|no"'
if (RESULT = 1) then do
'REQUEST HIDE=FALSE BODY="Do you want to have online bracket-highlighting during|user input ?" BUTTON="HIGHLIGHT|no online checks"'
if (RESULT = 1) then
'API ADD="GOLDED:API/Mirror/Mirror ONLINE"'
else
'API ADD="GOLDED:API/Mirror/Mirror OFFLINE"'
'REQUEST BODY="Do you want to have online bracket-highlighting while|moving the cursor ?" BUTTON="HIGHLIGHT|no online checks"'